var mysql = require("./mysql")
var query = "select * from user"


/**
 * 回调函数调用 mysql查询结果
 * @param result
 */

var data = "1";

function abc(result) {
    var json = JSON.stringify(result);
    console.log("-----------------")
    console.log(json)
    data=json;
    console.log(data)
}

mysql.query(query, abc);

